package com.tb;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import org.junit.Test;

/**
 * comment
 *
 * @author zhao yuan
 * @since 2018/8/7
 */
public class JSONTest {

    @Test
    public void testRemove(){
        int[] a = new int[]{1,3,5,7};
        JSONArray jsonArray = JSON.parseArray(JSON.toJSONString(a));

        for(int i=0; i<a.length;i++){
            jsonArray.remove(0);
            System.out.println(jsonArray.size());
        }
    }
}
